<div class="grid_4">
	<div class="da-panel collapsible">
		<form id="form_list_group_user" action="<?php echo ROOT_URL.$this->url(array('controller'=>'groupuser','action'=>'deletemulti','module'=>'admin'),null,true)?>" method="post">
			<div class="da-panel-header">
				<span class="da-panel-title"> <img
					src="images/icons/black/16/list.png" alt="" /> Group User <a
					style="float: right; margin-right: 10px"
					href="<?php echo ROOT_URL.$this->url(array('controller'=>'groupuser','action'=>'create','module'=>'admin'),null,true)?>"
					class="da-button green">Create new group</a>
					<a id="delete_multi_group_user"
					style="float: right; margin-right: 10px"
					href="#" class="da-button green">Delete seleted</a>
				</span>
			</div>
			<div class="da-panel-content">
				<table id="da-ex-datatable-numberpaging" class="da-table">
					<thead>
						<tr>
							<th></th>
							<th><b>Name</b></th>
							<th><b>Created by</b></th>
							<th><b>Status</b></th>
							<th><b>Options</b></th>
						</tr>
					</thead>
					<tbody>
						<?php if(count($this->GroupUsers)>0){?>
							<?php foreach ($this->GroupUsers as $key=>$GroupUser){?>
								<tr>
							<td><input type="checkbox" name="groupuser[]" value="<?php echo $GroupUser->id;?>"/></td>
							<td><?php echo $GroupUser->group_name;?></td>
							<td><?php echo $GroupUser->created_by?></td>
							<td><?php echo ($GroupUser->status==1) ? 'Enabled' : 'Disabled'?></td>
							<td class="da-icon-column"><a
								href="<?php echo ROOT_URL.$this->url(array('controller'=>'groupuser','action'=>'edit','module'=>'admin','id'=>$GroupUser->id),null,true)?>"><img
									src="<?php echo TEMPLATE_URL?>/admin/images/icons/color/pencil.png" /></a>
								<a class='da-ex-dialog-form' href="<?php echo ROOT_URL.$this->url(array('controller'=>'ajax','action'=>'getgroupuser','module'=>'admin','id'=>$GroupUser->id),null,true)?>"><img
									src="<?php echo TEMPLATE_URL?>/admin/images/icons/color/cross.png" /></a>
							</td>
						</tr>
							<?php }?>
						<?php }?>
					</tbody>
				</table>
			</div>
		</form>
	</div>
</div>
<div id="da-ex-dialog-form-div" class="no-padding">
	<form id="da-ex-dialog-form-val" class="da-form" action="<?php echo ROOT_URL.$this->url(array('controller'=>'groupuser','action'=>'delete','module'=>'admin'),null,true)?>" method="post">
		<div id="da-validate-error" class="da-message error"
			style="display: none;"></div>
		<div class="da-form-inline">
			<div class="da-form-row">
				<p>Are you want to delete group "<span id="group_name_label"></span>"</p>
				<input type="hidden" name="group_user" value=""/>
			</div>
		</div>
	</form>
</div>